<div class="box text-left line1" style="width:100%;background-color: #313131;">
    <div style="margin: 0 auto;width:1200px;">
        <div class="layui-inline logo">
            <a href="/"><img style="height:60px;" src="__ROOT__/static/index/img/logo1.png"></a>
        </div>
        <div class="layui-inline" style="padding-left:20px;text-align:right;float: right;line-height:90px;">
            {if session('member.username')}
            <input type="hidden" name="loginStatus" value="1" />
            <ul class="layui-nav" style="padding:0;background-color:transparent;">
                <li class="layui-nav-item">
                    <dl class="layui-nav-child">
                        <dd><a href="/edu/enroll.html"><i class="layui-icon layui-icon-engine margin-right-5"></i> 在线报名</a></dd>
                        <dd><a href="/edu/cert.html"><i class="layui-icon layui-icon-cellphone margin-right-5"></i> 我的证书</a></dd>
                        <dd><a href="/register/profile.html"><i class="layui-icon layui-icon-set-fill margin-right-5"></i> 基本资料</a></dd>
                        <dd><a class="logout"><i class="layui-icon layui-icon-release margin-right-5"></i> 退出登录</a></dd>
                    </dl>
                    <a style="color:#fff;font-size:16px;padding:0 20px 0 0 !important;">
                        <span style="font-size:16px;">
                            <img style="height:40px;width:40px;" src="__ROOT__/static/index/img/avatar.png" />
                            <span style="padding-right:15px;font-size:16px !important;">{:session('member.username')}</span>
                        </span>
                    </a>
                </li>
            </ul>
            {else}
            <div style="">
                <input type="hidden" name="loginStatus" value="0" />
                <img style="height:40px;" src="__ROOT__/static/index/img/avatar.png" />
                <a class="login" style="color:#fff;font-size:16px;">登录</a>
            </div>
            {/if}
        </div>

        <div class="layui-inline" style="width:200px;text-align: center;float: right;line-height:90px;">
            <img style="height:40px;" src="__ROOT__/static/index/img/phone.png" />
            <a href="javascript:void(0)" style="color:#fff;font-size:16px;">400-80087656</a>
        </div>
    </div>
</div>
<div class="box text-left line2" style="width:100%;background-color: #000;height: 60px;line-height:60px;">
    <div style="margin: 0 auto;width:1200px;">
        <div class="layui-inline nav">
        <ul class="layui-nav" style="background-color:transparent;padding:0 5px;">
            {foreach $nav as $key=>$vo}
            <li class="layui-nav-item">
                <a href="{$vo.linkurl}">{$vo.name}</a>
                {if count($vo.sub) gt 0}
                <dl class="layui-nav-child">
                    {foreach $vo['sub'] as $key2=>$vo2}
                    <dd><a href="{$vo2.linkurl}">{$vo2.name}</a></dd>
                    {/foreach}
                </dl>
                {/if}
            </li>
            {/foreach}
        </ul>
    </div>
    </div>
</div>